package XComponent.config
{
	import XComponent.XComponents;
	import XComponent.hide.XURLLoader;
	
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.ProgressEvent;

	public class EnterGameSkinLAFXML	extends EventDispatcher
	{
		private var m_btnData : Object;
		private var m_imgData : Object;
		
		private var m_xload : XURLLoader ;
		
		public function EnterGameSkinLAFXML()
		{
		}
		
		public function prase() : void
		{
			var orgXML : XML = XComponents.getSkinLAFCongfigXML("EnterGameSkinLAFCFG");
				
			m_btnData = new Object;
			m_imgData = new Object;

			var objInfo : Object;
			var element:XML;
			
			for each(element in orgXML.elements("Btn"))
			{
				objInfo  = new Object;
				objInfo["id"] = element.@id.toString();
				objInfo["className"] = element.@className.toString();
				
				m_btnData[objInfo["id"]]=objInfo;
			}
			
			for each(element in orgXML.elements("Img"))
			{
				objInfo  = new Object;
				objInfo["id"] = 					element.@id.toString();
				objInfo["className"] = 			element.@className.toString();
				objInfo["scaleGridTop"] = 		Number(element.@scaleGridTop);
				objInfo["scaleGridBottom"] = 		Number(element.@scaleGridBottom);
				objInfo["scaleGridLeft"] = 		Number(element.@scaleGridLeft);
				objInfo["scaleGridRight"] = 		Number(element.@scaleGridRight);
				
				m_imgData[objInfo["id"]]=objInfo;
			}
			
		}
		
		public function get BtnData() : Object
		{
			return m_btnData;
		}
		
		public function get ImgData() : Object
		{
			return m_imgData;
		}
	}
}